package com.ecoolex.union.pay.retailer.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.union.pay.retailer.entity.UnionPayCoupon;
import com.ecoolex.union.pay.retailer.entity.UnionPayCouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UnionPayCouponMapper {
    long countByExample(UnionPayCouponExample example);

    int deleteByExample(UnionPayCouponExample example);

    int deleteByPrimaryKey(Integer couponId);

    int insert(UnionPayCoupon record);

    int insertSelective(@Param("record") UnionPayCoupon record, @Param("selective") UnionPayCoupon.Column ... selective);

    UnionPayCoupon selectOneByExample(UnionPayCouponExample example);

    List<UnionPayCoupon> selectByExample(UnionPayCouponExample example);

    UnionPayCoupon selectByPrimaryKey(Integer couponId);

    UnionPayCoupon selectByPrimaryKeyWithLogicalDelete(@Param("couponId") Integer couponId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UnionPayCoupon record, @Param("example") UnionPayCouponExample example, @Param("selective") UnionPayCoupon.Column ... selective);

    int updateByExample(@Param("record") UnionPayCoupon record, @Param("example") UnionPayCouponExample example);

    int updateByPrimaryKeySelective(@Param("record") UnionPayCoupon record, @Param("selective") UnionPayCoupon.Column ... selective);

    int updateByPrimaryKey(UnionPayCoupon record);

    int batchInsert(@Param("list") List<UnionPayCoupon> list);

    int batchInsertSelective(@Param("list") List<UnionPayCoupon> list, @Param("selective") UnionPayCoupon.Column ... selective);

    int logicalDeleteByExample(@Param("example") UnionPayCouponExample example);

    int logicalDeleteByPrimaryKey(Integer couponId);
}